package demo.collidingSpheres;

import static org.lwjgl.opengl.GL11.*;
import engine.core.OpenGLView;

public class CollidingSpheres extends OpenGLView{

	public CollidingSpheres(String title) {
		super(title, 800, 600);
	}
	
	@Override
	public void init() {
		glEnable(GL_DEPTH_TEST);
		glShadeModel(GL_SMOOTH);
		glDepthFunc(GL_LEQUAL);
		
		glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE);
		glEnable(GL_COLOR_MATERIAL);
	}

	public static void main(String[] args) {
		CollidingSpheres window = new CollidingSpheres("colliding spheres");
		window.addScene(new SimpleScene());
		window.setCurrentScene("simple");
		new Thread(window).start();
	}
}
